#ifndef prs_odbDatabase_H
#define prs_odbDatabase_H

#include "prs_odbNodes.h"

namespace prs
{

struct TNodeOdbDatabase : public TNodeOdb {
  DECLARE_ClientNode()
    TNodeOdbDatabase(): NodeType(this) {}
	virtual void odbSync( TOdbParams Params );
	virtual TAttrNodeTypeBase* GetType(){
		return &NodeType;
	}

	TAttrNodeType<nodeType_Database> NodeType;
};

struct TRuleOdbDatabase : public snt::TRule{
	TRuleOdbDatabase::TRuleOdbDatabase( snt::text::TContext &Context
									  , snt::TRule &ROdbTable
									  , svl::TVariant &Parent
									  );

	static void FDatabase( snt::TParams &Params );

	svl::TVariant &parent, This;
	snt::TAlter A;
};

}
#endif

